package com.whut.mapper;

import com.whut.model.Contracttaskaccept;

import java.util.List;

public interface ContracttaskacceptMapper {
    int deleteByPrimaryKey(Integer taskId);

    int insert(Contracttaskaccept record);

    int insertSelective(Contracttaskaccept record);

    Contracttaskaccept selectByPrimaryKey(Integer taskId);

    int updateByPrimaryKeySelective(Contracttaskaccept record);

    int updateByPrimaryKey(Contracttaskaccept record);

    /*my methods*/
    List<Contracttaskaccept> getContracttaskacceptByGroupId(int userId);

    List<Contracttaskaccept> getTaskInfoByPage();

    List<Contracttaskaccept> getTaskInfoBySearchParams(String searchParams);

    List<Contracttaskaccept> selectAllByContractId(int contractId);

    List<Contracttaskaccept> selectAll();

    List<Contracttaskaccept> getLatest2(int contractId);

    List<Contracttaskaccept> getTaskForUserStatistic(int userId,String startTime,String endTime,int contractId);

    int editCheckTaskById(Integer taskId,String reserve1,String lastEditTime);

    String getCheckTaskById(Integer taskId);
    /**
     * @Author chenhuanru
     * @Description //TODO
     * @Date 18:37 2020/3/16
     * @Param [reserve1, list]
     * @return java.util.List<java.lang.Object>
     **/
    
    List<Object> getAllContractInfoByReserve1(String reserve1,List<Integer> list);

    Integer getMaxTaskId(Integer contractId);

    List<Contracttaskaccept> getAllTaskInfo(Integer contractId);

    List<Contracttaskaccept> getAllTask();

    List<Contracttaskaccept> getTaskByContractIds(List<Integer> list);
}